﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using STT.Layer.Connection;
using System.Data;
namespace STT.Profile.UserControls
{
    public partial class UcThongTinGiangVien : System.Web.UI.UserControl
    {
        ToolBox tb = new ToolBox();
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadGV();
        }

        private void LoadGV()
        {
            DataTable dt = tb.GetDataTableById2("GetGiangVienByMaHV", Session["Mahv"].ToString());
            gvGiangVien.DataSource = dt;
            gvGiangVien.DataBind();
            //pnchitietgiangvien.Visible = true;
            //lblnd.Text = HttpUtility.HtmlDecode(dt.r);

        }
        protected void gvGiangVien_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
        {

        }

        protected void gvGiangVien_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            gvGiangVien.PageIndex = e.NewPageIndex;
            LoadGV();
        }
    }
}